﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

using Repositories;
using Domain;

namespace Services
{
	public class ForumService
	{
		ForumRepository forumRep;

		public ForumService()
		{
			forumRep = new ForumRepository();
		}

		public IList<Forum> getForums()
		{
			return forumRep.getForums();
		}


		public void InsertOrUpdateForum(Int64? subforumID, string name, string description)
		{
			forumRep.InsertOrUpdateForum(subforumID, name, description);
		}

		public void DeleteSubforum(Int64 subforumID)
		{
			forumRep.DeleteSubforum(subforumID);
		}

	}
}
